//
//  WOPrototypeAppDelegate.h
//  WOPrototype
//
//  Created by Olof Millberg on 2010-04-14.
//  Copyright __MyCompanyName__ 2010. All rights reserved.
//

#import "WorkOrder.h"
#import "WOPerson.h"
#import "SQLiteReader.h"

#import <UIKit/UIKit.h>
#import "SQLiteReader.h"
#import <AddressBookUI/AddressBookUI.h>

@interface WOPrototypeAppDelegate : NSObject <UIApplicationDelegate> 
{
    UIWindow *window;
	NSMutableArray *users;
	WOPerson *currentUser;
	WorkOrder *selectedWorkOrder;
	SQLiteReader *sqlReader; 
	UINavigationController *navigationController;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) SQLiteReader *sqlReader;
@property (nonatomic, retain) UINavigationController *navigationController;
@property (nonatomic, retain) WOPerson *currentUser;
@property (nonatomic, retain) NSMutableArray *users;
@property (nonatomic, retain) WorkOrder *selectedWorkOrder;

- (void) addPeopleToAddressBook:(NSMutableArray *) allPeople;
- (BOOL) compareAddressBookContact:(ABRecordRef) refA with:(ABRecordRef) refB;

@end

